package com.zuoshenge.main.convert;

import com.zuoshenge.main.dto.CourseDTO;
import com.zuoshenge.main.entity.Course;
import org.mapstruct.factory.Mappers;

import java.util.List;

public interface CourseConverter {

    CourseConverter INSTANCE = Mappers.getMapper(CourseConverter.class);

    List<CourseDTO> convertCourseListToCourseDTOList(List<Course> courseList);

    CourseDTO convertCourseToCourseDTO(Course course);
}
